#include <iostream>
#include <string>
using namespace std;

/*
 struct 自定义类型的名字{
    类型1 数据1;
    ...
 };
*/
struct Mandarin
{
    string name;
    int age;
    int foot_size;
};

// instance - 实例
void SelfIntroduction(Mandarin &instance)
{
    printf("鄙人叫 %s, 我今年 %d 岁了,老子的脚有 %d 码\n",
           instance.name.c_str(), instance.age, instance.foot_size);
}

int main()
{
    // 变量的构造
    Mandarin dongzhuo;
    dongzhuo.name = "董卓";
    dongzhuo.age = 18;
    dongzhuo.foot_size = 35; // 狱卒

    // lvbu = {
    //     "吕布",
    //     25,
    //     48,
    // };

    Mandarin lvbu = {
        .name = "吕布",
        .age = 25,
        .foot_size = 48,
    };

    SelfIntroduction(dongzhuo);
    SelfIntroduction(lvbu);

    return 0;
}